package org.javaboy.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @Author 江南一点雨
 * @Date 2019-05-28 10:25
 */
@Data
@Configuration
//@PropertySource("classpath:book.properties")
@ConfigurationProperties(prefix = "book")
public class Book implements Serializable {
    /**
     * book id
     */
    private Long id;
    /**
     * book name
     */
    private String name;
    /**
     * author
     */
    private String author;

    private String webUrl;

}
